Sh.Render.Template = new Class({
	initialize : function (engine) {
		this.engine = engine;
	},
	get : function (name) {
		var general = this.engine.container
			.children('templates')
			.children('general');
		return !name ? general :
			general.children(name);
	},
	getBin : function (name) {
		if (!name.match(/^[a-z0-9]+$/i)) {
			throw 'WrongNameException';
		}
		return this.engine.container
			.children('templates')
			.children('apps')
			.children('bin[name=' + name + ']');
	}
});